package com.fpt.quanlysanbong.domain;

import java.util.List;

import com.google.gson.Gson;

/**
 * The Class SoccerFiled.
 */
public class SoccerField {

	/** The id soccer field. */
	private int id;

	/** The name soccer field. */
	private String name;

	/** The image soccer field. */
	private String image_url;

	/** The desccription. */
	private String description;

	/** The owner. */
	private Person owner;

	/** The staff. */
	private Person staff;

	/** The status. */
	private boolean status;

	/** The delete. */
	private boolean delete;

	/** The address. */
	private String address;

	private String district;

	private List<TimeDivision> listTimeDivision;

	public List<TimeDivision> getListTimeDivision() {
		return listTimeDivision;
	}

	public void setListTimeDivision(List<TimeDivision> listTimeDivision) {
		this.listTimeDivision = listTimeDivision;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	/**
	 * Instantiates a new soccer filed.
	 */
	public SoccerField() {
	}

	/**
	 * Instantiates a new soccer filed.
	 * 
	 * @param id the id
	 * @param name the name
	 * @param image_url the image_url
	 * @param description the description
	 * @param owner the owner
	 * @param staff the staff
	 * @param status the status
	 * @param delete the delete
	 * @param address the address
	 */
	public SoccerField(int id, String name, String image_url, String description, Person owner, Person staff,
			boolean status, boolean delete, String address, String district) {
		super();
		this.id = id;
		this.name = name;
		this.image_url = image_url;
		this.description = description;
		this.owner = owner;
		this.staff = staff;
		this.status = status;
		this.delete = delete;
		this.address = address;
		this.district = district;
	}

	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * Sets the id.
	 * 
	 * @param id the new id
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * Gets the name.
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name.
	 * 
	 * @param name the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Gets the image_url.
	 * 
	 * @return the image_url
	 */
	public String getImage_url() {
		return image_url;
	}

	/**
	 * Sets the image_url.
	 * 
	 * @param image_url the new image_url
	 */
	public void setImage_url(String image_url) {
		this.image_url = image_url;
	}

	/**
	 * Gets the description.
	 * 
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * Sets the description.
	 * 
	 * @param description the new description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * Gets the owner.
	 * 
	 * @return the owner
	 */
	public Person getOwner() {
		return owner;
	}

	/**
	 * Sets the owner.
	 * 
	 * @param owner the new owner
	 */
	public void setOwner(Person owner) {
		this.owner = owner;
	}

	/**
	 * Gets the staff.
	 * 
	 * @return the staff
	 */
	public Person getStaff() {
		return staff;
	}

	/**
	 * Sets the staff.
	 * 
	 * @param staff the new staff
	 */
	public void setStaff(Person staff) {
		this.staff = staff;
	}

	/**
	 * Checks if is status.
	 * 
	 * @return true, if is status
	 */
	public boolean isStatus() {
		return status;
	}

	/**
	 * Sets the status.
	 * 
	 * @param status the new status
	 */
	public void setStatus(boolean status) {
		this.status = status;
	}

	/**
	 * Checks if is delete.
	 * 
	 * @return true, if is delete
	 */
	public boolean isDelete() {
		return delete;
	}

	/**
	 * Sets the delete.
	 * 
	 * @param delete the new delete
	 */
	public void setDelete(boolean delete) {
		this.delete = delete;
	}

	/**
	 * Gets the address.
	 * 
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * Sets the address.
	 * 
	 * @param address the new address
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	public String toGson() {
		Gson g = new Gson();
		return g.toJson(listTimeDivision);
	}
}
